package com.example.reggie.utils;

import org.springframework.stereotype.Component;


public class BaseContext {
    public static ThreadLocal<Long> threadLocal =new ThreadLocal<>();
    public static void setId(Long id){
        threadLocal.set(id);
    }
    public static Long getId(){
        return threadLocal.get();
    }
}
